package com.recruit.wechat.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author LF
 * @since 2020-08-25
 */
@Data
@TableName("wechat_education")
@ApiModel(value="WechatEducation对象", description="")
public class WechatEducation extends Model<WechatEducation> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "教育背景ID")
    @TableId(value = "education_id", type = IdType.AUTO)
    private Integer educationId;

    @ApiModelProperty(value = "学校名字")
    @TableField("education_school")
    private String educationSchool;

    @ApiModelProperty(value = "入学时间")
    @TableField("education_start_time")
    private String educationStartTime;

    @ApiModelProperty(value = "毕业时间")
    @TableField("education_end_time")
    private String educationEndTime;

    @ApiModelProperty(value = "学历ID")
    @TableField("education_label_id")
    private Integer educationLabelId;

    @ApiModelProperty(value = "专业ID")
    @TableField("education_major_id")
    private Integer educationMajorId;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "education_create_time",fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "education_update_time",fill = FieldFill.INSERT_UPDATE)////新增和更新数据时
    private String updateTime;

    @TableField(exist = false)
    private String eduName;  //学历ID  对应的名字
    @TableField(exist = false)
    private String majorName;  //专业ID  对应的名字


    @Override
    protected Serializable pkVal() {
        return this.educationId;
    }

    @Override
    public String toString() {
        return "WechatEducation{" +
            "educationId=" + educationId +
            ", educationSchool=" + educationSchool +
            ", educationStartTime=" + educationStartTime +
            ", educationEndTime=" + educationEndTime +
            ", educationLabelId=" + educationLabelId +
            ", educationMajorId=" + educationMajorId +
            ", educationCreateTime=" + createTime +
            ", educationUpdateTime=" + updateTime +
        "}";
    }
}
